import Request from './request.js';

const API = {
	reportCategory: '/app/bus/report/category',
	myReport: '/app/bus/report',
	addReport: '/app/bus/report',
	reportInfo: '/app/bus/report/info'
};

// 举报分类接口
export const reportCategory = (params) =>
	Request.get(API.reportCategory, {
		params
	});

// 我的举报
export const myReport = (params) =>
	Request.get(API.myReport, {
		params
	});

// 新增举报

export const addReport = (data) => {
	return Request.post(API.addReport, data, {

	});
};

// 举报进度详情接口，接收 id 作为参数
export const reportInfo = (id) =>
	Request.get(`${API.reportInfo}/${id}`, {
		// 如果有请求参数（非路径参数）可以放这里，当前接口路径参数是 id，这里示例没有额外 query 参数
		params: {}
	});